#include "jump.h"
#include "ui_jump.h"
#include<QPainter>
jump::jump(QWidget *parent) :
    QMainWindow(parent),
    ui(new Ui::jump)
{
    ui->setupUi(this);
    setFixedSize(400,588);
    setWindowIcon(QIcon(":/tz1.jpg"));
    setWindowTitle("团子跳跃");
    //开始退出
    connect(ui->actionquit,&QAction::triggered,[=](){
        this->close();
    });
    //设置背景


}

void jump::paintEvent(QPaintEvent*){
    QPainter painter(this);
    QPixmap pix;
    pix.load(":/bj.jpg");
    painter.drawPixmap(0,0,this->width(),this->height(),pix);
}
jump::~jump()
{
    delete ui;
}
